<div class="form">
    <form action="/teacher/teacher.php" method="POST">
      <p>Question type</p>
      <label class="switch">
        <input type="checkbox" name="questionTypeMultiple" <?php if (isset($_POST['questionTypeMultiple'])) echo "checked ='checked'"; ?> onclick="this.form.submit()">
        <span class="slider round"></span>
      </label><br><br>
    </form>
  </div>